Reset the REQUEST_URI variable with mod_rewrite

Reset the REQUEST_URI variable with mod_rewrite

am 22.09.2009 15:09:34 von howa

Hello,

Consider rewrite rule as:

RewriteRule ^/test.php /test2.php [PT,L]


So when I access it via http://www.example.com/test.php


I want the field REQUEST_URI shown as test2.php, is it possible?



THanks.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Reset the REQUEST_URI variable with mod_rewrite

am 22.09.2009 16:29:29 von sravan kumar

--001636ed6a61197a2404742b6d3a
Content-Type: text/plain; charset=ISO-8859-1

Hello

RewriteRule ^/test.php /test2.php [R=301,L]

use this in ur redirection , it will redirect as you expected.

Sravan

On Tue, Sep 22, 2009 at 6:39 PM, howard chen wrote:

> Hello,
>
> Consider rewrite rule as:
>
> RewriteRule ^/test.php /test2.php [PT,L]
>
>
> So when I access it via http://www.example.com/test.php
>
>
> I want the field REQUEST_URI shown as test2.php, is it possible?
>
>
>
> THanks.
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--001636ed6a61197a2404742b6d3a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello

RewriteRule ^/test.php =A0/test2.php [R=3D301,L]

use t=
his in ur redirection , it will redirect as you expected.

Sravan
=

On Tue, Sep 22, 2009 at 6:39 PM, howard chen=
<howachen@gmail=
..com
>
wrote:

204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,



Consider rewrite rule as:



RewriteRule ^/test.php =A0/test2.php [PT,L]





So when I access it via =3D"_blank">http://www.example.com/test.php





I want the field REQUEST_URI shown as test2.php, is it possible?







THanks.



------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--001636ed6a61197a2404742b6d3a--

Re: Reset the REQUEST_URI variable with mod_rewrite

am 22.09.2009 17:52:31 von howa

Hello,


> RewriteRule ^/test.php =A0/test2.php [R=3D301,L]
>
> use this in ur redirection , it will redirect as you expected.
>

In fact, I can do it using the P flag (proxy).

But just to know if anything smater...

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org